<template>
	<web-view :src="src" :webview-styles="webviewStyles"></web-view>
</template>

<script>
	// pages/h5/index.js
	let app = getApp();

	export default {
		data() {
			return {
				src: "",
				webviewStyles: {
					progress: {
						color: '#45dfce'
					}
				}
			};
		},
		/**
		 * 生命周期函数--监听页面加载
		 */
		onLoad: function(options) {
			this.src =  decodeURIComponent(options.url);
		},
	};
</script>
<style>
</style>
